﻿@using VirtualPress.Infrastructure.Entities.Entity
@using VirtualPress.Tool.Framework
@{
    Layout = null;
}
@{
    Meeting meeting = ViewBag.Meeting;
    Article article = ViewBag.Article;
    List<ArticleAuthor> authorList = ViewBag.Authors;
    AuditingRecord record = ViewBag.Record;
    string authors = string.Empty;
    for (int i = 0, len = authorList.Count; i < len; i++)
    {
        authors += authorList[i].AuthorName;
        if (i != len - 1)
        {
            authors += ", ";
        }
    }
}
<!DOCTYPE html>
<html>
<head>
    <title>审稿结果</title>
    <link rel="stylesheet" href="/content/css/evalutionform.css" />
    <link rel="stylesheet" href="/content/css/bootstrap.min.css" />
    <script type="text/javascript" src="/Scripts/jquery.js"></script>
</head>
<body>
    <div class="container mini-layout">
        <div class="page-header center">
            <h3>
                @Html.Raw(meeting.Name + "审稿单")</h3>
            <div class="left contentrow">
                <div>
                    <b>题目：</b>@article.Title</div>
                <div>
                    <b>编号：</b>@article.Code</div>
                <div>
                    <b>作者：</b>@authors</div>
            </div>
        </div>
        <div class="contentrow">
            <div class="container-fluid">
                <div class="control-group container">
                    <label class="control-label strong">
                        1、稿件类型</label>
                    <div class="controls">
                        <div class="row-fluid">
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="科研" />
                                科研
                            </label>
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="实验" />
                                实验
                            </label>
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="案例研究" />
                                案例研究
                            </label>
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="调查" />
                                调查
                            </label>
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="教程" />
                                教程
                            </label>
                            <label class="radio">
                                <input type="radio" disabled="disabled" name="type" value="其他" />
                                其他
                            </label>
                        </div>
                    </div>
                </div>
                <hr />
                <div class="control-group container">
                    <label class="control-label strong">
                        2、总体评价</label>
                    <div class="controls">
                        <div class="control-group">
                            <label class="control-label">
                                1) 原创性</label>
                            <div class="controls">
                                <label class="radio">
                                    <input type="radio" disabled="disabled" name="Originality" value="优秀" />
                                    优秀
                                </label>
                                <label class="radio">
                                    <input type="radio" disabled="disabled" name="Originality" value="好" />
                                    好
                                </label>
                                <label class="radio">
                                    <input type="radio" disabled="disabled" name="Originality" value="一般" />
                                    一般
                                </label>
                                <label class="radio">
                                    <input type="radio" disabled="disabled" name="Originality" value="差" />
                                    差
                                </label>
                                <label class="radio">
                                    <input type="radio" disabled="disabled" name="Originality" value="很差" />
                                    很差
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="control-group container">
                    <label class="control-label">
                        2) 实用性</label>
                    <div class="controls">
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Usefulness" value="优秀" />
                            优秀
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Usefulness" value="好" />
                            好
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Usefulness" value="一般" />
                            一般
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Usefulness" value="差" />
                            差
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Usefulness" value="很差" />
                            很差
                        </label>
                    </div>
                </div>
                <div class="control-group container">
                    <label class="control-label">
                        3) 技术合理性</label>
                    <div class="controls">
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Soundness" value="优秀" />
                            优秀
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Soundness" value="好" />
                            好
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Soundness" value="一般" />
                            一般
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Soundness" value="差" />
                            差
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="Soundness" value="很差" />
                            很差
                        </label>
                    </div>
                </div>
                <div class="control-group container">
                    <label class="control-label">
                        4) 语言描述</label>
                    <div class="controls">
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="LinguisticQuality" value="优秀" />
                            优秀
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="LinguisticQuality" value="好" />
                            好
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="LinguisticQuality" value="一般" />
                            一般
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="LinguisticQuality" value="差" />
                            差
                        </label>
                        <label class="radio">
                            <input type="radio" disabled="disabled" name="LinguisticQuality" value="很差" />
                            很差
                        </label>
                    </div>
                </div>
                <hr />
                <div class="control-group">
                    <label class="control-label strong">
                        3、稿件说明</label>
                    <div class="controls">
                        <div class="control-group">
                            <label class="control-label">
                                1) 稿件解决了什么问题？</label>
                            <div class="controls">
                                <p>@record.Resolution</p>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                2) 主要领域作出的贡献？</label>
                            <div class="controls">
                                <p>@record.Contribution</p>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                3) 在哪些方面确实缺乏原创？</label>
                            <div class="controls">
                                <p>@record.Originalless</p>
                            </div>
                        </div>
                    </div>
                </div>
                <hr />
                <div class="control-group">
                    <label class="control-label strong">
                        4、最终审评</label>
                    <div class="controls">
                        <label class="checkbox">
                            <input type="radio" disabled="disabled" name="verdict" value="0" />
                            推荐接收
                        </label>
                        <label class="checkbox">
                            <input type="radio" disabled="disabled" name="verdict" value="1" />
                            接收
                        </label>
                        <label class="checkbox">
                            <input type="radio" disabled="disabled" name="verdict" value="2" />
                            需较小修订
                        </label>
                        <label class="checkbox">
                            <input type="radio" disabled="disabled" name="verdict" value="3" />
                            需较大修订
                        </label>
                        <label class="checkbox">
                            <input type="radio" disabled="disabled" name="verdict" value="9" />
                            拒绝
                        </label>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                        </label>
                        <div class="controls">
                            <p>@record.Suggestion</p>
                        </div>
                    </div>
                </div>
                <hr />
                <div class="control-group">
                    <div class="controls">
                        @if (ViewBag.Attachment != null)
                        {
                            Appendix att = ViewBag.Attachment;
                            <ul>
                                <li><a target="_blank" title="点击下载" href="/download?token=@EncodeByBase64.Encode(new { id = att.Id, type = 9 }.ToJson())">
                                    <i class="icon-file icon-large"></i>
                                    @att.FileName;</a> <span style="color: #999; font-style: italic; padding-left: 25px;">@att.CreateTime.ToString("yyyy-MM-dd")</span>
                                </li>
                            </ul>
                        }
                        else
                        {
                            <p>
                                不包含附件</p>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    $(function () {
        $('input:radio[name="type"][value="@record.ManuscriptType"]').attr('checked', 'checked');
        $('input:radio[name="Originality"][value="@record.Originality"]').attr('checked', 'checked');
        $('input:radio[name="Usefulness"][value="@record.Usefulness"]').attr('checked', 'checked');
        $('input:radio[name="Soundness"][value="@record.Soundness"]').attr('checked', 'checked');
        $('input:radio[name="LinguisticQuality"][value="@record.LinguisticQuality"]').attr('checked', 'checked');
        $('input:radio[name="verdict"][value="@((int)record.SuggestStatus)"]').attr('checked', 'checked');
    });
</script>
</html>
